using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Force Directed Layout</para>
    /// <para>Add a force directed layout to a diagram template</para>
    /// <para>向逻辑示意图模板添加力定向布局</para>
    /// </summary>    
    [DisplayName("Add Force Directed Layout")]
    public class AddForceDirectedLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddForceDirectedLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddForceDirectedLayout(object _in_utility_network, object _template_name, _is_active_value _is_active)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Force Directed Layout";

        public override string CallName => "un.AddForceDirectedLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _are_containers_preserved.GetGPValue(), _iterations_number, _repel_factor, _degree_freedom.GetGPValue(), _out_utility_network, _out_template_name, _breakpoint_position, _edge_display_type.GetGPValue()];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Preserve container layout</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Preserve container layout")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_containers_preserved_value _are_containers_preserved { get; set; } = _are_containers_preserved_value._false;

        public enum _are_containers_preserved_value
        {
            /// <summary>
            /// <para>PRESERVE_CONTAINERS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_CONTAINERS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>IGNORE_CONTAINERS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("IGNORE_CONTAINERS")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Number of Iterations</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Number of Iterations")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public long _iterations_number { get; set; } = 20;


        /// <summary>
        /// <para>Repel Factor</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Repel Factor")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _repel_factor { get; set; } = 1;


        /// <summary>
        /// <para>Degree of Freedom</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Degree of Freedom")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _degree_freedom_value _degree_freedom { get; set; } = _degree_freedom_value._LOW;

        public enum _degree_freedom_value
        {
            /// <summary>
            /// <para>LOW</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("LOW")]
            [GPEnumValue("LOW")]
            _LOW,

            /// <summary>
            /// <para>MEDIUM</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MEDIUM")]
            [GPEnumValue("MEDIUM")]
            _MEDIUM,

            /// <summary>
            /// <para>HIGH</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HIGH")]
            [GPEnumValue("HIGH")]
            _HIGH,

        }

        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        /// <summary>
        /// <para>Break Point Relative Position (%)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Break Point Relative Position (%)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _breakpoint_position { get; set; } = 30;


        /// <summary>
        /// <para>Edge Display Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Edge Display Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _edge_display_type_value _edge_display_type { get; set; } = _edge_display_type_value._REGULAR_EDGES;

        public enum _edge_display_type_value
        {
            /// <summary>
            /// <para>REGULAR_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REGULAR_EDGES")]
            [GPEnumValue("REGULAR_EDGES")]
            _REGULAR_EDGES,

            /// <summary>
            /// <para>CURVED_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CURVED_EDGES")]
            [GPEnumValue("CURVED_EDGES")]
            _CURVED_EDGES,

        }

        public AddForceDirectedLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}